from ftllibs.items.itemtools import ItemIconData

class Item_3156():
    def __init__(self):
        self.parent=False
        self.Name="Maw of Malmortius"
        self.IconFileName="3156.png"
        self.ID=3156
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['3155','1036','1033','1037']
        self.Builds_Into=[]
        self.Tags=['spell_block','damage']
        self.Costs = 925
        self.Total_Costs = 3300
        self.Description="+55 Attack Damage +36 Magic Resist  UNIQUE Passive: If you would take magic damage that would leave you at less than 30% Health, you first gain a shield that absorbs 400 magic damage for 5 seconds (60 second cooldown). UNIQUE Passive: +1 Attack Damage for every 2.5% of your Maximum Health that is missing."
        self.RichText_Description=""
        self.has_active=False
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["all"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Damage += 55.0
        self.parent.Magic_Resist += 36.0
        #self.parent.Attack_Damage += maxhealth - health = temp   (maxhelth/temp)*100 = temp  abs(temp/2.5)   _for_every_2.5%_of_your_Maximum_Health_that_is_missing.=1.0
        self.parent.Attack_Damage += 55.0
        self.parent.Magic_Resist += 36.0
        #self.parent.Attack_Damage += maxhealth - health = temp   (maxhelth/temp)*100 = temp  abs(temp/2.5)   _for_every_2.5%_of_your_Maximum_Health_that_is_missing.=1.0
        self.parent.Attack_Damage += 55.0
        self.parent.Magic_Resist += 36.0
        #self.parent.Attack_Damage += maxhealth - health = temp   (maxhelth/temp)*100 = temp  abs(temp/2.5)   _for_every_2.5%_of_your_Maximum_Health_that_is_missing.=1.0
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass


